<?php
/**
 * Each engineer has a duty to keep the code elegant
 * Created by wolffy.
 * Author @wolffy<13750088090@sina.cn>
 * Date: 2018/8/12
 * Time: 11:40
 */
namespace App\Repositories;

use App\Models\Distribut;

class DistributRepository
{
    /**
     * @param $userId
     * @return mixed
     */
    public function byUserId($userId)
    {
        return Distribut::where('user_id', $userId)->first();
    }
}